#coding=utf-8
import re

'''
' [单行]2.2.6_1 define定义的常量使用大驼峰命名法
'''
def mzcc_udrule_sin2_2_6__1(lineContext):

    # 过滤含括号的define
    results = re.findall(r"#define +[a-zA-Z0-9_-]+\(", lineContext.curLine);
    if 0 != len(results):
        return True;

    results = re.findall(r"#define +[a-z]", lineContext.curLine);
    if 0 != len(results):
        return False;
    else:
        return True;
